<template>
    <section>
    <!--工具条-->
  <!--  <el-col :span="24" class="toolbar" style="padding-bottom: 0px;">
        <el-form :inline="true" :model="filters">
            <el-form-item>
                <el-button @click="reload" icon="el-icon-arrow-left" circle></el-button>
            </el-form-item>
            <el-form-item>
                <el-input v-model="filters.keyword" placeholder="班级、姓名或学号" style="width:200px" clearable></el-input>
            </el-form-item>

            <el-form-item>
                <el-button type="primary" v-on:click="search" icon="el-icon-search" style="margin-left: 15px;">查询
                </el-button>
            </el-form-item>

            <el-form-item style="float:right;">
                <el-button type="primary" @click="showAdd" icon="el-icon-circle-plus-outline">新增</el-button>
            </el-form-item>
            <el-form-item style="float:right">
                <el-upload action="/api/批量导入" name="file" :on-success="onSuccess" :on-error="onError">
                    <el-button type="primary" icon="el-icon-circle-plus-outline">批量导入</el-button>
                </el-upload>
            </el-form-item>
        </el-form>
    </el-col>-->

    <!--列表-->
        <el-table :data="tableData" border highlight-current-row
                  style="width: 100%;">
            <el-table-column type="index" width="60"></el-table-column>
            <el-table-column prop="examname" label="考试名" min-width="150"></el-table-column>
            <el-table-column prop="examdate" label="时间" min-width="150"></el-table-column>

            <el-table-column label="操作" min-width="250" prop="dataList">
                <template slot-scope="scope" >
                    <el-button size="mini" @click="GoStudentGarde()" icon="el-icon-edit" >学生详情</el-button>
                </template>
            </el-table-column>
        </el-table>


        <!--工具条-->
    <el-col :span="24" class="toolbar">
        <el-pagination layout="total, sizes, prev, pager, next, jumper"
                       @size-change="handleSizeChange"
                       @current-change="handleCurrentChange"
                       :page-sizes="pageSizes"
                       :page-size="pageSize" :total="total" style="float:right;">
        </el-pagination>
    </el-col>
    </section>
</template>

<script>
    export default {
        data(){
            return{
                name: "gradetotal",
                tableData:[{
                    examname:"lalala",
                    examdate:"2018/1/1",
                }],

            }
        },
        methods:{
            GoStudentGarde(num){
                this.$router.push({path:'/studentgrade',query:{}});
            },
  /*  getTableData(){
        this.$http.post('/api/exampaper/findBycondition/'+this.teacherid+"/"+this.courseid).then(res=>{
            for(let i=0;i<res.data.data.length;i++){
                if(res.data.data[i].dlevel===1){
                    res.data.data[i].dlevel="简单";
                }
                else if(res.data.data[i].dlevel===2){
                    res.data.data[i].dlevel="中等";
                }
                else if(res.data.data[i].dlevel===3){
                    res.data.data[i].dlevel="困难";
                }
            }
            this.tableData=res.data.data;
            for(let i=0;i<this.tableData.length;i++){
                this.isshare(this.tableData[i].id);

            }
            console.log("1111111111111");
            console.log(this.tableData);
        }).catch(error=>{

        });
    }*/
    },
        mounted(){
           /* this.getTableData();*/
        }
    }
</script>

<style scoped>

</style>